package com.yunji.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.base.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.order.domain
 * @Title: Scale
 * @Description: 分润信息
 * History:
 * Date						Version			Author			Summary
 * ========================================================================
 * 2024-04-27 17:59:48		V1.0			HuaAo		新建类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_order_scale")
public class OrderScaleDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = -2827123343536970742L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "分润ID")
    private Long scaleId;

    private Integer agentMode;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @ApiModelProperty(value = "订单号")
    private String orderCode;

    @ApiModelProperty(value = "数据来源凭证号")
    private String dataCode;

    @ApiModelProperty(value = "交易类型")
    private Integer tradeType;

    @ApiModelProperty("账户id")
    private Long accountId;

    @ApiModelProperty("账户类型")
    private String accountType;

    @ApiModelProperty("账户名称")
    private String accountName;

    @ApiModelProperty("账户电话")
    private String accountTel;

    @ApiModelProperty(value = "分成比例")
    private BigDecimal accountScaleRatio;

    @ApiModelProperty(value = "分成类型(0:不分成;1:按交易金额;2:按交易笔数; 默认:0关闭)")
    private Integer accountScaleType;

    @ApiModelProperty("账户余额")
    private BigDecimal balance;

    @ApiModelProperty(value = "分润金额")
    private BigDecimal scaleAmount;

    private Long belongId;
}